From: Timo Tijhof Date: Wed, 2 Sep 2015 19:18:11 +0000 (+0200) Subject: resourceloader: Ensure startup module returns early for incompatible browsers X-Git-Tag: 1.31.0-rc.0~10168^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=58a4a6649ec2018b084eaf5ea893f5adfb9e4ed3;p=lhc%2Fweb%2Fwiklou.git resourceloader: Ensure startup module returns early for incompatible browsers Follows-up 8491820 which refactored the code but forgot an early return. Bug: T111233 Change-Id: Ie65427caee4231b4ca97a43394a36154c33451a9 --- diff --git a/resources/src/startup.js b/resources/src/startup.js index eb4dc9fc21..197a672fee 100644 --- a/resources/src/startup.js +++ b/resources/src/startup.js @@ -75,6 +75,7 @@ function isCompatible( ua ) { // See OutputPage::getHeadScripts(). document.documentElement.className = document.documentElement.className .replace( /(^|\s)client-js(\s|$)/, '$1client-nojs$2' ); + return; } /**